{literal}
<style type="text/css">
	.this .m_tab{
		border-bottom:1px solid #D6DBDE; border-top:1px solid white; width:100%;
	}	
	.this .td1 {
		border-right:1px solid #D6DBDE; height:22px; width:50px; text-align:center
	}
	.this .td2 {
		border-right:1px solid #D6DBDE; padding:0px 0px 0px 10px; height:22px; text-align:left;
	}
	.this .td3{
		border-right:1px solid #D6DBDE; height:22px; width:120px; text-align:center
	}
	.this .td4{
		vertical-align:middle; width:110px; text-align:center; 
	}
</style>
{/literal}
{strip}
<span class="this">
{ext->GetPostedFormStats array=$form_all assign="form_stat"}
{ext->countArray array=$form_stat assign="ct"}
{capture name="list"}
	{foreach from=$form_stat item="el"}
		<table cellpadding="0" cellspacing="0" {if !$el.hide}bgcolor="#FDFDFD"{else}bgcolor="#F4F6F7"{/if} class="m_tab">
			<tr>			
				<td class="td1">{$el.id}</td>	
				<td class="td2"><a href="{$_http_path}/index.php?admin=1&body=admin/body/aditionalelements.htm&id={$el.id}">{$el.name}</a></td>
				<td class="td3">{$el.date}</td>
				<td class="td4">{$el.count}</td>
			</tr>
		</table>		
	{/foreach}	
{/capture}
{include file="admin/body/forms/tabs.htm"}
<table width="100%" cellpadding="6" cellspacing="0" border="0" bordercolor="#DBE1E5" bgcolor="#DBE1E5">
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="12"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>

{if $ct}
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
	<tr>		
		<td height="20" style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="50">{t t='ID'}</td>
		<td style="font-size:9px; color:#4C4C4C; text-align:left; padding:0px 0px 0px 10px; border-right:1px solid #D6DBDE">{t t='Pavadinimas'}</td>
		<td height="20" style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="120">{t t='Data'}</td>
		<td style="font-size:9px; color:#4C4C4C; text-align:center;" width="110">{t t='Išsiuntimų skaičius'}</td>		
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
{$smarty.capture.list}
{else}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="50" bgcolor="#FFFFFF" align="center" style="padding:15px">{t t='Nėra nei vienos užpildytos formos'}</td>		
	</tr>
</table>
{/if}

<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td height="12"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>	
</table>

</td>		
</tr>
</table>
{/strip}
</span>